<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>jq扩展</title>
		<script src="../js/jquery-3.4.1.min.js"></script>
		<script>
			var result=$.extend({},{name:"Tom",age:21},{name:"Jerry",sex:"Boy"});
			alert(JSON.stringify(result));
			$.extend({
			  hello:function(){alert('hello');}
			  });
			 $.hello();
			 $.extend({
				 toBig:function(str){
					 str=str.replace(/一/g,"壹");
					 return str;
				 }
			 });
			 var s=$.toBig("二零二一年");
			 alert(s);
		</script>
	</head>
	<body>
	</body>
</html>
